package cn.quang.search.toolkit.provider.entity;

import java.util.List;

public class KeyOperatorValue {
    private String field;
    private List<String> keys;
    private List<String> operators;
    private List<Object> values;

    public static KeyOperatorValue of(String field, List<String> keys, List<String> operators, List<Object> values) {
        KeyOperatorValue value = new KeyOperatorValue();
        value.setField(field);
        value.setKeys(keys);
        value.setOperators(operators);
        value.setValues(values);
        return value;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<String> getKeys() {
        return keys;
    }

    public void setKeys(List<String> keys) {
        this.keys = keys;
    }

    public List<String> getOperators() {
        return operators;
    }

    public void setOperators(List<String> operators) {
        this.operators = operators;
    }

    public List<Object> getValues() {
        return values;
    }

    public void setValues(List<Object> values) {
        this.values = values;
    }

    @Override
    public String toString() {
        return "{" +
                "field=" + field +
                ", keys=" + keys +
                ", operators=" + operators +
                ", values=" + values +
                '}';
    }
}
